<?php
class My_Controller_Admin_Choix extends My_Controller_Admin_Action
{
    public function init()
    {
        if (!$this->_getParam('num_vente')) {
            $this->_redirect('admin/ventes');
        }
        parent::init();
        $this->view->numVente = $this->_getParam('num_vente');
    }

    protected function _goBack($url = null)
    {
        if (!$url) {
            $module = $this->getRequest()->getModuleName();
            $controller = $this->getRequest()->getControllerName();
            $url = $module . '/' . $controller;
        }
        $page = $this->_getParam('page', 0);
        $params = $page ? '/index/page/' . $page : '';
        $params .= '/?num_vente=' . $this->_getParam('num_vente');
        $this->_redirect($url . $params);
    }
}